import java.util.ArrayList;
import java.util.LinkedList;

public class List_demo {

    public static void main(String[] args) {
        ArrayList as = new ArrayList();
        LinkedList ls = new LinkedList();

        as.add("1");
        as.add("2");

        ls.add("3");
        ls.add("4");

        System.out.println("this is arraylist  hash code:"+as.hashCode());
        System.out.println("this is linkedlist  hash code:"+ls.hashCode());

        ls.add(66);
        System.out.println("this is linkedlist  hash code:"+ls.hashCode());
    }

}
